package com.junxian.springboot01.common;

import com.junxian.springboot01.service.Leader;
import com.junxian.springboot01.service.XiaoSun;

/**
 * 静态代理
 */
public class StaticProxy {

    public static void main(String[] args) {
        //被代理类
        XiaoSun xiaoSun = new XiaoSun();
        //被代理类
        Leader leader = new Leader(xiaoSun);
        leader.coding();
    }

}
